package com.ljx.Domain;

public class MyThreadLocal {
    private static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static void setThreadLocal(Long id){
        threadLocal.set(id);
    }
    public static Long getThreadLocal(){
        return threadLocal.get();
    }
    public static void clearThreadLocal(){
        threadLocal.remove();
    }
}
